@import "./vars";
@import "./form";

#wechat-menu {
    background: white;

    * {
        box-sizing: border-box;
        font-size: 15px;
    }

    input[type="radio"] {
        margin: 3px 3px 0px 5px;
    }

    .wm-btn {
        border: 1px solid $grey;
        background: #fff;
        outline: 0;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 3px;
        word-break: keep-all;

        &:hover:not([disabled]) {
            background: $grey;
        }

        &[disabled] {
            color: $grey-1;
        }

        + .wm-btn {
            margin-left: 10px;
        }
    }

    .wm-btn-primary {
        border: none;
        background: $main-color;
        color: white;

        &:hover:not([disabled]) {
            background: #3a963e;
        }

        &[disabled] {
            background-color: #7fd083;
            color: #fff;
        }
    }

    .wm-btn-danger {
        border: none;
        background: $danger-color;
        color: white;

        &:hover:not([disabled]) {
            background: #d46060;
        }

        &[disabled] {
            background-color: #ff998d;
            color: #fff;
        }
    }

    .wm-btn-sm {
        padding: 6px 10px;
    }

    .wm-btn[disabled] {
        cursor: not-allowed;
    }

    a {
        text-decoration: none;
        color: #576b95;
    }

    .wm-pull-right {
        float: right !important;
    }

    .wm-pull-left {
        float: left !important;
    }

    .wm-input {
        height: 35px;
        border: $grey-border;
        padding: 0 0 0 10px;
        outline: 0;
        border-radius: 3px;
        width: 100%;

        &:focus {
            border-color: #cdcdcd;
        }
    }

    .wm-cursor-pointer {
        cursor: pointer;
        user-select: none;
    }

    .wm-grey-1 {
        color: $grey-1;
    }

    .wm-grey {
        color: $grey;
    }

    table {
        border-collapse: collapse;

        border: $grey-border;
        width: 100%;
    }

    td,
    th {
        padding: 5px 10px;
        height: 45px;
        border: $grey-border;
        text-align: left;
    }

    textarea {
        font-family: 'Arial';

        &.wm-input {
            height: auto;
            padding: 10px;
            min-height: 40px;
            resize: vertical;
        }
    }

    .wm-footer-toolbar {
        text-align: center;
        color: $grey-1;
        padding: 20px 0;
        border: $grey-border;
        border-top: none;
    }

    .wm-vertical-middle {
        display: inline-block;
        vertical-align: middle;
    }

    $tab-height: 50px;

    .wm-tabs {
        height: $tab-height;
        line-height: $tab-height;
        border-bottom: 3px solid $main-color;
        box-sizing: content-box !important;
        margin-bottom: 20px;
    }

    .wm-tab {
        color: $grey-1 !important;
        display: inline-block;
        padding: 0 20px;

        &:hover {
            background-color: $grey;
        }

        &.wm-active {
            background-color: $main-color;
            color: #fff !important;
        }

        cursor: pointer;
    }
}
